package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.ConfirmGoodBeen;
import cn.xfdzx.android.apps.shop.bean.CreatePusherBeen;
import cn.xfdzx.android.apps.shop.bean.LogininfoBean;
import cn.xfdzx.android.apps.shop.bean.VideoInfoBeen;
import cn.xfdzx.android.apps.shop.bean.VideoRoomGoodListBeen;
import cn.xfdzx.android.apps.shop.contract.CreatePusherContract;
import cn.xfdzx.android.apps.shop.contract.VideoInfoContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class VideoInfoModel implements VideoInfoContract.Model {


    @Override
    public Flowable<VideoInfoBeen> videoInfo(String live_id) {
        return RetrofitClient.getInstance().getApi().getLiveInfo(live_id);
    }

    @Override
    public Flowable<LogininfoBean> getLiveImLogin(String id, String type) {
        return RetrofitClient.getInstance().getApi().getLiveImLogin(id,type);
    }

    @Override
    public Flowable<VideoRoomGoodListBeen> videoRoomGoodList(String live_id) {
        return RetrofitClient.getInstance().getApi().videoRoomGoodList( live_id);
    }

    @Override
    public Flowable<ConfirmGoodBeen> addCar(String is_new, String uniqueId, String productId, String cartNum,String relation_type, String relation_id ) {
        return  RetrofitClient.getInstance().getApi().confirmGood(is_new,uniqueId,productId,cartNum,relation_type,relation_id);
    }

    @Override
    public Flowable<VideoRoomGoodListBeen> getLiveRoomFocus(String live_id) {
        return RetrofitClient.getInstance().getApi().getLiveRoomFocus( live_id);
    }

    @Override
    public Flowable<VideoRoomGoodListBeen> getLiveRoomZan(String live_id) {
        return RetrofitClient.getInstance().getApi().getLiveRoomZan(live_id);
    }
}
